package com.free.system.api;

import com.free.common.core.constant.ServiceNameConstants;
import com.free.common.core.web.domain.R;
import com.free.system.api.domain.LoginBody;
import com.free.system.api.factory.RemoteAuthFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 验证服务
 *
 * @author free
 */
@FeignClient(contextId = "remoteAuthService" , value = ServiceNameConstants.AUTH_SERVICE, fallbackFactory = RemoteAuthFallbackFactory.class)
public interface RemoteAuthService {
    //{
//    /**
//     * 上传文件
//     *
//     * @param file 文件信息
//     * @return 结果
//     */
    @PostMapping(value = "/login" )
    R<?> login(@RequestBody LoginBody loginBody);


}
